<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Admin/Task/add')}">添加任务</a></li>
    </ul>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
            	<th></th>
                <th>任务名称</th>
                <th>任务说明</th>
                <th>每日上限</th>
                <th>每次获得奖励</th>
                <th>编辑</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo" key="keys">
                <tr>
                	<td>{$keys+1}</td>
                    <td>{$vo.task_name}</td>
                    <td>{$vo.content}</td>
                    <td>{$vo.max_cnt}</td>
                    <td>{$vo.amount}</td>
                    <td><a href='{:U("Admin/Task/delete",array("id"=>$vo["id"]))}' class="js-ajax-dialog-btn"
                           data-msg="确定要删除此地区吗？">删除</a>
                        <a href='{:U("Admin/Task/add",array("id"=>$vo["id"]))}'>修改</a></td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
    <div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

</body>
</html>